<?php
	$id=$_REQUEST["id"];
	if($id)//co gia tri thi xoa
	{
		$result=mysql_query("DELETE FROM hoadon WHERE id=$id");
		//noi dung ct hoa don se ko hien theo
		if($result)
		{
			echo"<script type='text/javascript'>";
				echo"window.location='index.php?thamso=donhang';";//load ra danh sach cac don hang cua khach hang
			echo"</script>";//end script cua noi dung hien thi
		}
	}
?>